php question

Category: Geeks r Us

Post 1 by Bobcat (Newborn Zoner) on Sunday, 13-Feb-2005 20:44:19

Hi,
I'm trying to write a "who's online" script in php for a project I am
working on, also including a timeout to remove the user from the db if
he/she hasn't gone to another page within x amount of minutes. The part that
absolutely stumps me is the timeout part. I can't think of an effective way
to implement that. Can anyone help?

Post 2 by fastfinge (I can't call it a day til I enter the zone BBS) on Monday, 14-Feb-2005 9:42:28

Put a function to clean out old users every time the script is called for a new user.